package xcmg.device.dao.mapper.delivery;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.delivery.LogisticsBasicDataDO;
import xcmg.device.dao.entity.delivery.LogisticsBasicWeightDO;
import xcmg.device.service.vo.delivery.LogisticsBasicDataVO;

import java.util.List;

/**
 * 物流重量区间数据维护Mapper
 * @author huhuawei
 * LogisticsBasicDataDO
 */
@Mapper
public interface LogisticsBasicWeightMapper {
    /**
     * 增加
     * @param logisticsBasicWeightDO
     * @return
     */
    int add(LogisticsBasicWeightDO logisticsBasicWeightDO);

    /**
     * 根据物流信息主表删除重量区间表信息
     * @param basicId
     * @return
     */
    int deleteByBasicKey(@Param("basicId") String basicId);


    /**
     * 根据物流基础信息主表查询重量区间表信息
     * @param basicId
     * @return
     */
    List<LogisticsBasicWeightDO> list(String basicId);

}